{% extends 'AdminPanelDashboardBundle::layout.html.twig' %}


{% block stylesheets %}
  {{ parent() }}
{% endblock %}
{% block javascripts %}      
  {{ parent() }}
{% endblock %}


{% block content %}

<div id="content">
  <ul class="breadcrumb">
    <li><a href="/admin" class="glyphicons home"><i></i> Нүүр</a></li>
    <li class="divider"></li>
    <li><a href="{{path('lessonList')}}">Хичээл</a></li>
    <li class="divider"></li>
    <li>{{lesson.SUBJECT_NAME}}</li>
  </ul>
  <div class="separator"></div>

  <div class="heading-buttons">
    <h3 class="glyphicons sort"><i></i> Хичээлийн дэлгэрэнгүй</h3>    
  </div>
  <div class="separator"></div>

  <div class="innerLR">
    <div>
      <div style="margin-bottom: 0;" id="accordion2" class="accordion">
        <div class="accordion-group">
          <div class="accordion-heading">
            <a href="#collapseOne" data-parent="#accordionLesson1" data-toggle="collapse" class="accordion-toggle">
              Хичээл
            </a>
          </div>
            
            
            
          <div class="accordion-body in collapse" id="collapseOne" style="height: auto;">
            <div class="accordion-inner">
              
              
              <div class="widget widget-gray widget-body-white">
               
                <div style="padding: 10px 0;" class="widget-body">
                  <table class="table table-bordered table-condensed">
                    <!--<thead>
                      <tr>
                        <th class="left-bold" style="width: 150px;"></th>
                        <th></th>
                      </tr>
                    </thead>-->
                    <tbody>
                      <tr>
                        <td class="left" style="font-weight: bold;width: 150px;">Багш овог нэр</td>
                        <td>{{lesson.TUTOR_FIRST_NAME}} ({{lesson.TUTOR_LAST_NAME}})</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Сурагч овог нэр</td>
                        <td>{{lesson.USER_FIRST_NAME}} ({{lesson.USER_LAST_NAME}})</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Хичэлийн бүлэг / нэр</td>
                        <td>{{lesson.SUBJECT_CATEGORY_NAME}} / {{lesson.SUBJECT_NAME}}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Цагийн хөлс</td>
                        <td>{{lesson.HOURLY_FEE}}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Нийт хичээл орох цаг</td>
                        <td>{{lesson.TOTAL_HOURS}}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Хичээлийн нийт дүн</td>
                        <td>{{lesson.TOTAL_HOURS * lesson.HOURLY_FEE}}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Хичэлийн хугацаа</td>
                        <td>{{lesson.START_DATE}} - {{lesson.END_DATE}}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Хичэл орох газар</td>
                        <td>{{lesson.ADDRESS}}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Хичэлийн дэлгэрэнгүй</td>
                        <td>{{lesson.DESCRIPTION}}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Төлөв</td>
                        <td>{% render url('lessonStatusNameChange', { 'status': lesson.LESSON_STATUS}) %}</td>
                      </tr>                      
                    </tbody>
                  </table>
                </div>
              </div>
       
              
              
            </div>
          </div>
        </div>
        <div class="accordion-group">
          <div class="accordion-heading">
            <a href="#collapseTwo" data-parent="#accordionLesson2" data-toggle="collapse" class="accordion-toggle collapsed">
              Гэрээ
            </a>
          </div>
          <div class="accordion-body collapse" id="collapseTwo" style="height: 0px;">
            <div class="accordion-inner">
              
              <div class="widget widget-gray widget-body-white">
                
                <div style="padding: 10px 0;" class="widget-body">
                  <table class="table table-bordered table-condensed">
                    <!--<thead>
                      <tr>
                        <th class="left-bold" style="width: 150px;"></th>
                        <th></th>
                      </tr>
                    </thead>-->
                    <tbody>
                      <tr>
                        <td class="left" style="font-weight: bold;width: 150px;">Багш овог нэр</td>
                        <td>{{lesson.TUTOR_FIRST_NAME}} ({{lesson.TUTOR_LAST_NAME}})</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Сурагч овог нэр</td>
                        <td>{{lesson.USER_FIRST_NAME}} ({{lesson.USER_LAST_NAME}})</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Хичэлийн бүлэг / нэр</td>
                        <td>{{lesson.SUBJECT_CATEGORY_NAME}} / {{lesson.SUBJECT_NAME}}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Гэрээний агуулга</td>
                        <td>{{lesson.CONTENT | raw}}</td>
                      </tr>                      
                      <tr>
                        <td class="left" style="font-weight: bold">Төлөв</td>
                        <td>{% if lesson.STATUS is not null %}{% render url('statusNameChange', { 'status': lesson.STATUS}) %}{% endif %}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Админ үйлдэл</td>
                        <td><form style="margin: 0px;"><a href="javascript:;" onclick="blockThisContract()" class="btn btn-danger btn-icon glyphicons circle_arrow_right"><i></i>Блок</a></form></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              
              
            </div>
        </div>
        </div>
        <div class="accordion-group">
          <div class="accordion-heading">
            <a href="#collapseThree" data-parent="#accordionLesson3" data-toggle="collapse" class="accordion-toggle collapsed">
              Нэхэмжлэх
            </a>
          </div>
          <div class="accordion-body collapse" id="collapseThree" style="height: 0px;">
            <div class="accordion-inner">
              
              <div class="widget widget-gray widget-body-white">

                <div style="padding: 10px 0;" class="widget-body">
                  <table class="table table-bordered table-condensed">
                    <!--<thead>
                      <tr>
                        <th class="left-bold" style="width: 150px;"></th>
                        <th></th>
                      </tr>
                    </thead>-->
                    <tbody>
                      {% if invoiceArray is not null %}
                      <tr>
                        <td class="left" style="font-weight: bold;width: 150px;">Багш овог нэр</td>
                        <td>{{lesson.TUTOR_FIRST_NAME}} ({{lesson.TUTOR_LAST_NAME}})</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Сурагч овог нэр</td>
                        <td>{{lesson.USER_FIRST_NAME}} ({{lesson.USER_LAST_NAME}})</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Хичэлийн бүлэг / нэр</td>
                        <td>{{lesson.SUBJECT_CATEGORY_NAME}} / {{lesson.SUBJECT_NAME}}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Нэхэмжлэх агуулга</td>
                        <td>{{invoiceArray.CONTENT | raw}}</td>
                      </tr>                      
                      <tr>
                        <td class="left" style="font-weight: bold">Төлөв</td>
                        <td>{% if invoiceArray.IS_ACTIVE is not null %} {% if invoiceArray.IS_ACTIVE == 0 %}<button style="font-size: 9px;width: 90px;" class="btn btn-block btn-danger">Идэвхигүй</button>{% else %}<button style="font-size: 9px;width: 70px;" class="btn btn-block btn-success">Идэвхитэй</button>{% endif %}{% endif %}</td>
                      </tr>
                      <tr>
                        <td class="left" style="font-weight: bold">Админ үйлдэл</td>
                        <td>
                          <form style="margin: 0px;">
                            <a href="javascript:;" onclick="blockThisContract()" class="btn btn-danger btn-icon glyphicons circle_arrow_right"><i></i>Блок</a>
                          </form></td>
                      </tr>
                      {% else %}
                      <tr>
                        <td colspan="2">Байхгүй                        
                        </td>
                      </tr>
                      {% endif %}
                    </tbody>
                  </table>
                </div>
              </div>
              
            </div>
          </div>
        </div>
        <div class="accordion-group">
          <div class="accordion-heading">
            <a href="#collapseFour" data-parent="#accordionLesson4" data-toggle="collapse" class="accordion-toggle collapsed">
              Төлбөр
            </a>
          </div>
          <div class="accordion-body collapse" id="collapseFour" style="height: 0px;">
            <div class="accordion-inner">
              <div class="widget widget-gray widget-body-white">

                <div style="padding: 10px 0;" class="widget-body">
                  <h3>Оролдлого 1</h3>
                  <table class="table table-bordered table-condensed">
                    <!--<thead>
                      <tr>
                        <th class="left-bold" style="width: 150px;"></th>
                        <th></th>
                      </tr>
                    </thead>-->
                    <tbody>
                      {% if invoiceArray is not null %}
                        <tr>
                          <td class="left" style="font-weight: bold;width: 150px;">Банкны нэр</td>
                          <td>{{lesson.TUTOR_FIRST_NAME}} ({{lesson.TUTOR_LAST_NAME}})</td>
                        </tr>
                        <tr>
                          <td class="left" style="font-weight: bold">Төлбөр төлөхөөр үсэрсэн URL</td>
                          <td>{{lesson.USER_FIRST_NAME}} ({{lesson.USER_LAST_NAME}})</td>
                        </tr>
                        <tr>
                          <td class="left" style="font-weight: bold">Дүн</td>
                          <td>{{lesson.SUBJECT_CATEGORY_NAME}} / {{lesson.SUBJECT_NAME}}</td>
                        </tr>
                        <tr>
                          <td class="left" style="font-weight: bold">Нэхэмжлэх агуулга</td>
                          <td>{{invoiceArray.CONTENT | raw}}</td>
                        </tr>                      
                        <tr>
                          <td class="left" style="font-weight: bold">Төлөв</td>
                          <td>{% if invoiceArray.IS_ACTIVE is not null %} {% if invoiceArray.IS_ACTIVE == 0 %}<button style="font-size: 9px;width: 90px;" class="btn btn-block btn-danger">Идэвхигүй</button>{% else %}<button style="font-size: 9px;width: 70px;" class="btn btn-block btn-success">Идэвхитэй</button>{% endif %}{% endif %}</td>
                        </tr>
                        <tr>
                          <td class="left" style="font-weight: bold">Админ үйлдэл</td>
                          <td>
                            <form style="margin: 0px;">
                              <a href="javascript:;" onclick="blockThisContract()" class="btn btn-danger btn-icon glyphicons circle_arrow_right"><i></i>Блок</a>
                            </form></td>
                        </tr>
                      {% else %}
                        <tr>
                          <td colspan="2">Байхгүй                        
                          </td>
                        </tr>
                      {% endif %}
                      </tbody>
                    </table>
                  </div>
                </div>
            </div>
          </div>
        </div>
      </div>
    </div>    
  </div>  
  <!-- End Content -->
</div>

{% endblock %}
